package com.cjb.base.service.impl;

import com.cjb.base.dao.UserDao;
import com.cjb.base.domain.User;
import com.cjb.base.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserDao userDao;

    @Override
    public User getByLoginName(String loginName) {
        User user = userDao.findByloginName(loginName);
        return user;
    }
}
